package org.kzwl.service.app;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.kzwl.comm.pojo.ResponseData;
import org.kzwl.comm.pojo.bo.book.BookQueryBasic;
import org.kzwl.comm.pojo.bo.book.BooksBasicBO;
import org.kzwl.comm.pojo.bo.book.QueryTitleBO;
import org.kzwl.comm.pojo.dto.book.BookDTO;
import org.kzwl.comm.pojo.dto.book.BookDetailsDTO;
import org.kzwl.comm.pojo.dto.book.HotOrNewDTO;
import org.kzwl.comm.pojo.dto.book.MyBooksDTO;
import org.kzwl.entity.app.Book;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 张国伟/郭家恒
 * @since 2020-09-10
 */
public interface BookService extends IService<Book> {


    ResponseData<Void> saveTest();

    //编辑推荐
    List<Book> recommend();

    //热门榜单与每日新书
    HotOrNewDTO hotOrNew();

    //根据分类查询
    IPage<BookDTO> queryBookByType(BookQueryBasic bo);

    //每日新书
    HotOrNewDTO NewBooks();

    //查询书籍详情
    BookDetailsDTO getBook(BookQueryBasic bo);

    //同步数据
    void syncBook();

    //热门搜索
    List<BookDTO> getHot();

    //关键搜索
    List<BookDTO> queryTitle(QueryTitleBO bo);

}
